package com.teradata.dashboard.ui.activity;

import com.teradata.dashboard.R;
import com.teradata.dashboard.dialog.CustomDialog;

import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;

public class CustomDialogDemoActivity extends Activity {
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        
        //CustomDialog dialog1 = new CustomDialog(this, R.layout.layout_dialog, R.style.Theme_dialog);//Dialog使用默认大小(160)
        CustomDialog dialog1 = new CustomDialog(this, 180, 180, R.layout.success_dialog, R.style.Theme_dialog);
        //LinearLayout mMessage = (LinearLayout) dialog1.findViewById(R.id.background);
        
        dialog1.show();//显示Dialog
        //如果要修改Dialog中的某个View,比如把"正在删除..."改为"加载中..."
       // TextView mMessage = (TextView) dialog1.findViewById(R.id.message);
        //mMessage.setText("加载中...");
    }
}